package com.xcenter.cabinet.folder.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("serial")
public class FolderVO implements Serializable {

	private String text;
	private List<FolderVO> nodes = new ArrayList<>();
	private String path;
	
	public FolderVO() {
	}

	public FolderVO(String text, String path) {
		super();
		this.text = text;
		this.path = path;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public List<FolderVO> getNodes() {
		return nodes;
	}

	public void setNodes(List<FolderVO> nodes) {
		this.nodes = nodes;
	}
	
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void addNode(FolderVO vo) {
		this.nodes.add(vo);
	}

	@Override
	public String toString() {
		return "FolderVO [text=" + text + ", nodes=" + nodes + "]";
	}

}
